package com.itheima.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/test")
public class TestController {
	
	@RequestMapping("/findAll")
	public Map<Integer,String> findAll(){
		Map<Integer,String> map=new HashMap<>();
		map.put(1, "haha");
		map.put(2, "xixi");
		return map;
	}

}
